import { Button } from 'antd';
import type React from 'react';
// import {
//   attachTest,
//   getTest,
//   detachTest,
// } from '@/components/MapView/Mapless/mana/test';
import styles from '../index.module.less';
import type { TestControlProps } from './types';

const Index: React.FC<TestControlProps> = ({ maplessRef }) => {
  const onTest1 = () => {
    if (!maplessRef.current) return;
  };

  const onTest2 = () => {
    if (!maplessRef.current) return;
  };

  return (
    <div className={styles.test}>
      <Button onClick={onTest1}>Test1</Button>
      <Button onClick={onTest2}>Test2</Button>
    </div>
  );
};

export default Index;
